CC = gcc
CFLAGS = -Wall -g
PROGS = pr_sender pr_receiver

all: $(PROGS)

pr_sender: pr_sender.c
	$(CC) $(CFLAGS) -o $@ $<

pr_receiver: pr_receiver.c
	$(CC) $(CFLAGS) -o $@ $<

send:
	./pr_sender -i 128.8.126.197 -p 41710 -l 10 -n 1000 -w 222 -f send.out

recv:
	./pr_receiver -p 41710 -l 10 -n 1000 -w 222 -f recv.out

clean:
	rm $(PROGS) *~ send.out recv.out

